package com.cowin.sys.model;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "TM_BAS_SORT_RULE")
public class TmBasSortRule {
    @Id
    @Column(name = "TM_BAS_SORT_RULE_ID")
    private Long tmBasSortRuleId;

    @Column(name = "PRIORITY_ID")
    private Long priorityId;

    @Column(name = "ENABLED")
    private Short enabled;

    @Column(name = "SORT_RULE_TYPE")
    private Short sortRuleType;

    @Column(name = "LIMIT_MIN")
    private BigDecimal limitMin;

    @Column(name = "LIMIT_MAX")
    private BigDecimal limitMax;

    @Column(name = "LAST_UPDATE_TIME")
    private Date lastUpdateTime;

    @Column(name = "LAST_UPDATE_USERNAME")
    private String lastUpdateUsername;

    @Column(name = "PID")
    private Short pid;

    @Column(name = "PID_IS_CLOSED")
    private Short pidIsClosed;

    @Column(name = "SORT_RULE_MODE")
    private Short sortRuleMode;

}